/*
 * @Description: file content
 * @Author: Zt2tzzt
 * @Date: 2021-09-23 15:22:26
 * @LastEditors: Zt2tzzt
 * @LastEditTime: 2021-09-23 15:28:15
 * @LastEditContent: 
 */
// Student
function Student(name, age, sno) {
  this.name = name
  this.age = age
  this.sno = sno
}
Student.prototype.running = function() {
  console.log(this.name, 'running~')
}
Student.prototype.eating = function() {
  console.log(this.name, 'eating~')
}
Student.prototype.studying = function() {
  console.log(this.name, 'studying~')
}

// Teacher
function Teacher(name, age, title) {
  this.name = name
  this.age = age
  this.title = title
}
Teacher.prototype.running = function() {
  console.log(this.name, 'running~')
}
Teacher.prototype.eating = function() {
  console.log(this.name, 'eating~')
}
Teacher.prototype.teaching = function() {
  console.log(this.name, 'teaching~')
}